Skip to content

Listview with multiple selections#53

Open
Shallowmallow wants to merge 1 commit intohaxeui:masterfrom
Shallowmallow:MultipleListView
Open

Listview with multiple selections#53
Shallowmallow wants to merge 1 commit intohaxeui:masterfrom
Shallowmallow:MultipleListView

Conversation

@Shallowmallow
Copy link
Contributor

@Shallowmallow Shallowmallow commented Jan 30, 2024

image

Can set indices, get items etc

Just two question. What is the point of one-item-repeated ? Maybe I should also force one line section for this selection mode.

Plus code question, I did this in ListViewSelectedIndices.
for (i in (_value:Array<Int>)) { view.ensureVisible(i); }
If someone do selectedIndices = ["aa", bb"]. Feels it could it break. Wonder if there is a better way.

Needs haxeui/hxWidgets#104

@ianharrigan
Copy link
Member

Does ensureVisible even work on haxeui-hxwidgets? I think its the default behaviour tbh (at least on windows). And if its not, i guess it would just ensure the last item was visible?

@Shallowmallow
Copy link
Contributor Author

Shallowmallow commented Jan 31, 2024 via email

@ianharrigan
Copy link
Member

Where is the behaviour for ensureVisible on hxwidgets? I think its the default behaviour on wx, but pretty sure there is no code in haxeui-hxwidgets to expose that functionality (unless i just can see it)

@Shallowmallow
Copy link
Contributor Author

Shallowmallow commented Jan 31, 2024 via email

@ianharrigan
Copy link
Member

Sorry, ive been reading this wrong the whole time... this is adding the behaviour for mulitple selections to haxeui-hxwidgets... got it... for now, i would do anything with ensureVisible... wx is pretty good at handling it, unless we note otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants